import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import Index from './views/Index.vue'
import Videos from './views/Videos/Videos.vue'
import Admin from './views/Admin/Admin.vue'
import Team from './views/Team/Team.vue'
import TeamView from './views/Team/TeamView.vue'
import CompanyView from './views/Team/CompanyView.vue'
import Performance from './views/Performance/Performance.vue'
import ArticleList from './views/Article/ArticleList.vue'
import ArticleEdit from './views/Article/ArticleEdit.vue'
import ArticleType from './views/Article/ArticleType.vue'
import DailyStock from './views/Article/DailyStock.vue'
import DailyNews from './views/Article/DailyNews.vue'
import Discuss from './views/Article/Discuss.vue'
import Forecast from './views/Article/Forecast.vue'
import Chat from './views/Chat/Chat.vue'
import Product from './views/Config/Product.vue'
import CompanyIntro from './views/Config/CompanyIntro.vue'
import Hot from './views/Article/Hot.vue'
import Fast from './views/Article/Fast.vue'
import AdBanner from './views/AdBanner/AdBanner.vue'
import Top from './views/Config/Top.vue'

let routes = [{
    path: '/login',
    component: Login,
    name: '',
    hidden: true
}, {
    path: '/404',
    component: NotFound,
    name: '404',
    hidden: true
}, {
    path: '/',
    component: Home,
    redirect: '/index',
    name: '',
    hidden: true
}, {
    path: '/index',
    component: Home,
    children: [
        { path: '/', component: Index, name: '主页' }
    ],
    hidden: true
}, {
    path: '/',
    component: Home,
    name: '',
    leaf: true, //只有一个节点
    iconCls: 'fa fa-file-video-o',
    children: [
        { path: '/viodes', component: Videos, name: '往期视频' }
    ]
}, {
    path: '/',
    component: Home,
    name: '团队管理',
    leaf: false, //只有一个节点
    iconCls: 'fa fa-handshake-o',
    children: [
        { path: '/team', component: Team, name: '团队列表' },
        { path: '/teamView', component: TeamView, name: '团队风采' },
        { path: '/companyView', component: CompanyView, name: '公司风采' },
        { path: '/companyIntro', component: CompanyIntro, name: '公司介绍' }
    ]
}, {
    path: '/',
    component: Home,
    name: '',
    leaf: true, //只有一个节点
    iconCls: 'fa fa-dashboard ',
    children: [
        { path: '/performance', component: Performance, name: '客户绩效' }
    ]
}, {
    path: '/',
    component: Home,
    name: '',
    leaf: true, //只有一个节点
    iconCls: 'fa fa-user',
    children: [
        { path: '/admin', component: Admin, name: '账号管理' }
    ]
}, {
    path: '/',
    component: Home,
    name: '文章管理',
    leaf: false, //只有一个节点
    iconCls: 'fa fa-rss',
    children: [
        { path: '/articleType', component: ArticleType, name: '文章分类' },
        { path: '/articleList', component: ArticleList, name: '文章列表'},
        { path: '/dailyNews', component: DailyNews, name: '每日新闻'},
        { path: '/dailyStock', component: DailyStock, name: '每日金股'},
        { path: '/discuss', component: Discuss, name: '公众号平台'},
        { path: '/forecast', component: Forecast, name: '一句话读早晚评'},
        { path: '/hot', component: Hot, name: '聚焦热点'},
        { path: '/fast', component: Fast, name: '盘中快报'},
        { path: '/articleUpdate', component: ArticleEdit, name: '文章编辑', hidden: true },
        { path: '/articleAdd', component: ArticleEdit, name: '文章新增', hidden: true }
    ]
}, {
    path: '/',
    component: Home,
    name: '',
    leaf: true, //只有一个节点
    iconCls: 'fa fa-wechat',
    children: [
        { path: '/chat', component: Chat, name: '直播互动' }
    ]
}, {
    path: '/',
    component: Home,
    name: '',
    leaf: true, //只有一个节点
    iconCls: 'fa fa-product-hunt',
    children: [
        { path: '/product', component: Product, name: '产品介绍' }
    ]
}, {
    path: '/',
    component: Home,
    name: '',
    leaf: true, //只有一个节点
    iconCls: 'fa fa-image',
    children: [
        { path: '/adBanner', component: AdBanner, name: '活动banner' }
    ]
}, {
    path: '/',
    component: Home,
    name: '',
    leaf: true, //只有一个节点
    iconCls: 'fa fa-file',
    children: [
        { path: '/top', component: Top, name: '顶部文字' }
    ]
}, {
    path: '*',
    redirect: '/404',
    hidden: true
}];

export default routes;